{% extends "base.html" %} {% block content %}

Add Expense

Monthly Budget: {{ budget }}

Remaining Balance: {{ balance }}

{{ form.hidden_tag() }}
{{ form.amount.label(class="form-label") }} {{ form.amount(class="form-control", placeholder="Enter amount") }} {% for error in form.amount.errors %}
{{ error }}
{% endfor %}
{{ form.category.label(class="form-label") }} {{ form.category(class="form-control", placeholder="Select a category") }} {% for error in form.category.errors %}
{{ error }}
{% endfor %}
{{ form.description.label(class="form-label") }} {{ form.description(class="form-control", placeholder="Add a description (optional)") }} {% for error in form.description.errors %}
{{ error }}
{% endfor %}
{{ form.date.label(class="form-label") }} {{ form.date(class="form-control stylish-input", placeholder="Select a date") }} {% for error in form.date.errors %}
{{ error }}
{% endfor %}
{{ form.submit(class="btn btn-primary") }}
{% endblock %}